﻿<!DOCTYPE html>
<html>
<head id="jibach">
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/content/pesssite.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

    <script>
        var browerName = navigator.userAgent.toLowerCase();
        var jsLink = document.createElement("link");
        if (!(/msie/i.test(browerName))) {
            jsLink.rel = "stylesheet";
            jsLink.type = "text/css";
            jsLink.href = "@Url.Content("~/content/pesssite_mobile.css")";
            document.getElementById("jibach").appendChild(jsLink);
        }
    </script>

    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @Scripts.Render("~/bundles/jquery")

    
    @RenderSection("Styles", false)
    @RenderSection("JavaScript",false)

</head>
<body id="fuying">
<div id="box">
	<div id="top">
        <h2>上海市基础教育“三项评选”管理平台</h2>
   	    <div id="logoon">@Html.Partial("_LogOnPartial")</div>
        <div id="nav">
            <ul>
                <li><a  href="/Activity" class="selected">活动</a></li>
                @*<li><a  href="/">通知</a></li>*@
                <li><a  href="/">公示</a></li>
                <li>
                    @if(Membership.GetUser()!=null)
                    {
                        @Html.ActionLink("帮助","Download","Home",new {filename="help.zip"},null)
                    }
                </li>
                <li>
                    @if(Roles.IsUserInRole("Admin"))
                    {
                        @Html.ActionLink("系统设定","SystemSettings","Home")
                    }

                </li>
            </ul>
        </div>
        <div id="subNav">
            @Html.Partial("_ActivityNavPartial",HttpContext.Current.Session["ActivityID"]==null?-1:(int)HttpContext.Current.Session["ActivityID"])
        </div>
	</div>
    <div id="content">
    	<div id="left">left</div>
        <div id="right">
            @RenderBody()
        </div>
    </div>
</div>
<div id="footer">
  <div id="footerBody">版权所有 ©2013&#8195;上海市教育委员会 教学研究室&#8195;沪ICP备</div>
</div>
<script >
    function setDivHeight() {
        if (document.getElementById("box").clientHeight < document.documentElement.clientHeight - 55) {
            document.getElementById("footer").style.height = document.documentElement.clientHeight - document.getElementById("box").clientHeight + "px";
        } else {
            document.getElementById("footer").style.height = "55px";
        }
        //alert(document.getElementById("footer").style.height + "      " + document.documentElement.clientHeight + "     " + document.getElementById("box").clientHeight);
	}
	window.onresize=function (){
		setDivHeight();
	}
	setDivHeight();
</script>

@*    @Scripts.Render("~/bundles/jquery")
        @RenderSection("scripts", required: false)*@


</body>
</html>
